package JavaEE初阶;



public class Demo02 {
    public static void main(String[] args) throws InterruptedException {
        Object object = new Object();
        synchronized (object){
            System.out.println("使用wait()之前");
            object.wait();
            System.out.println("使用wait之后");
        }
    }
}
